package tron.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tron.entity.Tron;

import java.util.List;
import java.util.Map;

@Mapper
public interface TronMapper extends BaseMapper<Tron> {
    List<Tron> getList(String name);

    List<Tron> getList1(@Param("uName") String name);

    List<Tron> getList2(String name,Integer id);

    List<Tron> getList3(@Param(Constants.WRAPPER) Wrapper<Tron> wrapper);

    Map<String, Long> count();

    List<Map<String, Long>> group();

    // param 参数名要么叫ew, 要么加上注解@Param(Constants.WRAPPER)
    List<Tron> tronList(@Param(Constants.WRAPPER) Wrapper<Tron> ew);

}
